<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
<span th:if="${#fields.hasErrors('${userBean.*}')}"><span th:errors="${userBean.*}"></span></span>
<div><span th:text="${message}"></span></div>
<form action="initadd" th:object="${userBean}" method="post">
<table>
<tr><td><caption>注册界面</caption></td></tr>
<tr>
       <td>ID：<input name="userId" type="text" /></td>
    </tr>
<tr>
       <td>用户名：<input name="userName" type="text"/></td>
    </tr>
      <tr>
          <td>密码:<input name="passWord" type="password"/></td>
          </tr>
      <tr>
         <td>确认密码:<input name="passWordconfim" type="password"/></td>
          </tr>
         <tr>
        <td> <button type="sumbit" name="register">注册</button>
 <button type="sumbit" name="return">返回首页</button></td>
 </tr>
 

</table>


</form>
</body>
</html>